package com.xzit.tmms.mapper.user;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.xzit.tmms.bean.user.Right;
import com.xzit.tmms.bean.user.Role;
import com.xzit.tmms.common.base.BaseMapper;
import com.xzit.tmms.common.page.Page;

public interface RoleMapper extends BaseMapper {

	public List<Map<String, Object>> getRoleList() throws Exception;

	public Integer getRoleId(String roleValue) throws Exception;

	public List<Role> queryRole(Page<Role> page) throws Exception;

	public List<Right> getRightsByRole(Integer roleId) throws Exception;

	public Map<String, Object> getRoleValueByAdminId(@Param("adminId") Integer adminId) throws Exception;

	public List<Right> getAllRoles() throws Exception;
}